home *** CD-ROM | disk | FTP | other *** search
- Path: sourcery.han.de!not-for-mail
- Newsgroups: comp.sys.amiga.datacomm
- References: <353.6655T1397T113@walrus.megabaud.fi>
- From: "Olaf Barthel" <olsen@sourcery.han.de>
- Date: Thu, 04 Apr 1996 22:58:36 +0100
- X-NewsReader: IntuiNews 1.3a (7.9.95)
- Subject: Re: Term script - trap lists
- Message-ID: <13213882@sourcery.han.de>
-
- In Article <353.6655T1397T113@walrus.megabaud.fi>, Jussi Ruuskanen <simon@walrus.megabaud.fi> wrote:
- > How do I use trap lists in term scripts? The examples with extras
- > archive show just normal waiting process, but often bbs sends
- > "more" or "you have mail" or something else that could be easily
- > processed like WHEN command in Terminus. I'd appreciate a small
- > arexx example.
-
- Well, I never wrote a complete example program for it, but the functionality
- of the trap list has no exact counterpart in the ARexx interface. While the
- trap list triggers commands automatically when the scanner hits the keywords
- associated with them, you will have to do it `manually' with ARexx. What you
- do is put the keywords into the WAIT list and repeatedly call the ARexx
- "WAIT" command. If it finds one of the keywords from the list in the input data
- stream, the command will return the keyword it found as the result. Based upon
- this information your ARexx script has to decide what to do about it.
-
- --
- Home: Olaf Barthel, Brabeckstrasse 35, D-30559 Hannover
- Net: olsen@sourcery.han.de
-